home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tcl_GetVar Tcl Command Language Library Tcl_GetVar
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- Tcl_GetVar - return the value of a Tcl variable
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ttccll..hh>>
-
- char *
- TTccll__GGeettVVaarr(_i_n_t_e_r_p, _v_a_r_N_a_m_e, _g_l_o_b_a_l)
-
- AARRGGUUMMEENNTTSS
- Tcl_Interp *_i_n_t_e_r_p (in) Interpreter in which to
- check for variable.
-
- char *_v_a_r_N_a_m_e (in) Name of desired variable.
-
- int _g_l_o_b_a_l (in) If non-zero, then insist
- that _v_a_r_N_a_m_e be interpreted
- as a global variable
- regardless of whether a
- procedure invocation is in
- progress.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- TTccll__GGeettVVaarr is a utility procedure used by several of the Tcl
- commands. It returns the value of variable _v_a_r_N_a_m_e in
- interpreter _i_n_t_e_r_p. If there isn't a Tcl command procedure
- being interpreted right now, or if _g_l_o_b_a_l is non-zero, then
- _v_a_r_N_a_m_e is always treated as the name of a global variable.
- Otherwise, if a procedure is being interpreted, then _v_a_r_N_a_m_e
- will be treated as a local variable name, unless it has been
- declared global using the gglloobbaall command. If no variable by
- the name _v_a_r_N_a_m_e exists right now, then a NULL pointer is
- returned.
-
-
- KKEEYYWWOORRDDSS
- interpreter, global, local, variable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: December 6, 1990 1
-
-
-
-